package cn.yj.wx.pay.enrity;

import com.alibaba.fastjson.JSONObject;

/**
 * 统一支付请求参数对象
 * @author 永健
 * @since 2021-09-22 17:57
 */
public class WechatPayRequest extends BaseRequest {

    private String time_expire;
    private JSONObject scene_info;

    public WechatPayRequest(String description, String out_trade_no,
            Amount amount, Payer payer, String time_expire) {
        super(null, null, description, out_trade_no , amount, payer);
        this.time_expire = time_expire;
    }

    public WechatPayRequest(String appid, String mchid, String description, String out_trade_no,
            Amount amount, Payer payer, String time_expire) {
        super(appid, mchid, description, out_trade_no, amount, payer);
        this.time_expire = time_expire;
    }

    public WechatPayRequest(String appid, String mchid, String description, String out_trade_no,
            Amount amount, Payer payer) {
        super(appid, mchid, description, out_trade_no, amount, payer);
    }

    @Override
    public String getTime_expire() {
        return time_expire;
    }

    @Override
    public WechatPayRequest setTime_expire(String time_expire) {
        this.time_expire = time_expire;
        return this;
    }

    public JSONObject getScene_info() {
        return scene_info;
    }

    public WechatPayRequest setScene_info(JSONObject scene_info) {
        this.scene_info = scene_info;
        return this;
    }
}
